package site.zhangzhuo.v2;

import java.nio.charset.Charset;

public class Main {

    public static void main(String[] args) {
        //获取默认编码
        System.out.println("系统默认编码：" + System.getProperty("file.encoding"));
        System.out.println("系统默认字符编码:" + Charset.defaultCharset());
        System.out.println("系统默认语言:" + System.getProperty("user.language"));

        Xin zhuo=new Xin();
        Yan yan=new Yan();
        zhuo=Xin.load("data/XinV2");
        //yan.readFile("data/教科书.txt");
        yan.readFile("data/杂文.txt");
        zhuo.getYanshi(yan);
        System.out.println("心量："+zhuo.size());
        System.out.println(zhuo);
        if (zhuo != null) {
            zhuo.save("data/XinV2");
        }
    }


}